package org.csmzxy.class2333;

class Person_06 {
    public String name;
    public String role;
    public String subject;
    //构造方法一
    public Person_06(String name, String role){
        this.name=name;
        this.role=role;
    }
    public Person_06(String name, String role, String subject){
        this.name=name;
        this.role=role;
        this.subject=subject;
    }
    public void print1(){
        System.out.println("姓名"+name+" ");
        System.out.println("身份"+role+" ");
        System.out.println("教学科目"+subject);
    }
}
